import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询新设备申请列表
export function getEquipmentApplicationInfoList(query) {
    return request({
        url: '/accept/center/equipmentApplication/list',
        method: 'get',
        params: query
    })
}

// 获取新设备申请信息
export function getEquipmentApplication(equipmentApplicationId) {
    return request({
        url: '/accept/center/equipmentApplication/' + parseStrEmpty(equipmentApplicationId),
        method: 'get'
    })
}

// 新增新设备申请
export function addEquipmentApplicationInfo(data) {
    return request({
        url: '/accept/center/equipmentApplication/add',
        method: 'post',
        data: data
    })
}

// 修改新设备申请
export function updateEquipmentApplicationInfo(data) {
    return request({
        url: '/accept/center/equipmentApplication/update',
        method: 'post',
        data: data
    })
}

// 删除新设备申请
export function delEquipmentApplicationInfo(equipmentApplicationId) {
    return request({
        url: '/accept/center/equipmentApplication/delete/' + equipmentApplicationId,
        method: 'get'
    })
}
